package rolesystem.jade.agents.carry.carrier;

import rolesystem.jade.agents.*;
import rolesystem.middle.managers.EnvironmentManager;
import jade.core.*;

public class CarrierA extends Agent
{
	private static final long serialVersionUID = 9162818739922138171L;

	public void setup()
	{
		try
		{
			Thread.sleep(2500);
		} catch(InterruptedException ie) {}

		CarrierSL subject=new CarrierSL((int)(Math.random()*(EnvironmentManager.ENV_MAX_X-1)),(int)(Math.random()*(EnvironmentManager.ENV_MAX_Y-1)),1);
		addBehaviour(new WrapperBehaviour(this, subject, new CarrierNB(this, subject)));
		System.out.println(getLocalName()+" started.");
	}

	public void takeDown()
	{
		System.out.println(getLocalName()+" is now shutting down.");
	}

}